package com.his.drugstage.mapper;

import com.his.drugstage.pojo.DrugInfo;
import com.his.drugstage.pojo.Prescription;
import com.his.drugstage.pojo.Register;
import org.apache.ibatis.annotations.Mapper;

import java.util.ArrayList;

@Mapper
public interface DrugPrescriptionMapper {
    /**
     * 通过患者id查询药品处方
     * @param register
     * @return
     */
    public ArrayList<DrugInfo> selectPrescriptionDrugInfo(Register register);

    /**
     * 通过处方id更改药品状态
     * @param prescription
     * @return
     */
    public int updateDrugState(Prescription prescription);
}
